# -*- coding: utf-8 -*-
# @Time    : 2019/2/25 15:26
# @Author  : Macher
# @File    : dealhoneypot.py
# @Software: PyCharm Community Edition
#处理蜜罐IP
import re
import requests

def readRecord():
    fp = open("honeypot.txt", 'r+',errors='ignore')
    # record = fp.readlines()
    lines = list(fp)
    for eachline in lines:
        print(eachline)
    #     print(eachline)

    fp.close()
    # return record
readRecord()
# headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'}
# session = requests.Session()
# session.trust_env = False
# r = session.get('http://www.nothink.org/honeypot_dns_attacks.txt', headers=headers, timeout=10)
# print(r.text)